package com.tqjc.system.common.entity.BO;

import com.tqjc.system.common.enums.CarEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author 86195
 * @version 1.0
 * @description 多任务
 * @date 2023/10/24 15:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MoreTaskMaterialBO {

    private String taskId;



    /**
     * 天车编码
     */
    private CarEnum carEnum;


    /**
     * 工作跨
     */
    private String workingSpanNo;

    /**
     * 槽车号   macSN
     */
    private String tankCarNo;

    /**
     * 双轨槽车位置
     */
    private String test;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        MoreTaskMaterialBO that = (MoreTaskMaterialBO) o;
        return Objects.equals(taskId, that.taskId) && carEnum == that.carEnum && Objects.equals(workingSpanNo, that.workingSpanNo);
    }


}
